package vars

import (
	"gitee.com/csingo/cServer"
)

var RouteConfig = &cServer.RouteConf{
	Middlewares: []cServer.RouteConf_Middleware{
		{App: "global", Name: "RequestLogMiddleware"},
	},
	Routes: []cServer.RouteConf{
		{Path: "/version", Method: []string{"GET"}, App: "demo", Controller: "HelloController", Function: "Version"},
		// {Path: "/ping", Method: []string{"GET"}, App: "demo", Controller: "HelloController", Function: "Ping"},
		// {Path: "/config", Method: []string{"GET"}, App: "demo", Controller: "HelloController", Function: "Config"},

		{Path: "/rpc/call", Method: []string{"POST"}, App: "csingo", Controller: "RpcController", Function: "Handler"},
	},
}
